package com.nowcoder.community.dao.elasticsearch;

import com.nowcoder.community.entity.DiscussPost;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;


/*
ElasticsearchRepository<DiscussPost, Integer>
ElasticsearchRepository：父接口，其中已经事先定义好了对es服务器访问的增删改查各种方法，Spring会为其生成实现类
DiscussPost：接口要处理的实体类
Integer：实体类中主键的类型
 */
@Repository
public interface DiscussPostRepository extends ElasticsearchRepository<DiscussPost, Integer> {
}
